﻿
/// <reference path="_namespace.js" />
/// <reference path="DataRowEventArgs.js" />

ajax.lang.addNamespace("ajax.events");

//-----------------------------------------------------------------------------
ajax.events.DataItemEventArgs = function(e, source, dataRow, colName)
{
    ajax.events.DataItemEventArgs.superConstructor.call(this, e, source, dataRow);
    this.dataItem = 
    {
        name: colName,
        value: dataRow[colName]        
    };
}
//-----------------------------------------------------------------------------
ajax.lang.extend("ajax.events.DataItemEventArgs", "ajax.events.DataRowEventArgs");

//-----------------------------------------------------------------------------
ajax.events.DataItemEventArgs.prototype.toString = function()
{
    return "ajax.events.DataItemEventArgs";
}

//-----------------------------------------------------------------------------
ajax.events.DataItemEventArgs.cast = function(obj)
{///<returns type="ajax.events.DataItemEventArgs"/>
    return obj;    
}
